home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000421_robertls@nortelnetworks.com_Thu Oct 21 11:03:40 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!snoopy.risq.qc.ca!nrc-news.nrc.ca!utnut!qcarhaaa.nortelnetworks.com!bcarh189.ca.nortel.com!zcars0v6!not-for-mail
  2. From: "Robert Simmons" <robertls@nortelnetworks.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Kermit Script Output Out of Order
  5. Date: Wed, 20 Oct 2004 18:19:44 -0500
  6. Organization: Nortel
  7. Lines: 58
  8. Message-ID: <cl6rqi$mo0$1@zcars0v6.ca.nortel.com>
  9. References: <cl29ql$dm7$1@zcars0v6.ca.nortel.com> <slrncnan01.3s1.fdc@sesame.cc.columbia.edu> <cl3tc5$5n0$1@zcars0v6.ca.nortel.com> <_mfdd.83561$Ot3.22349@twister.nyc.rr.com> <cl4k1s$97u$1@zcars0v6.ca.nortel.com> <slrncnddme.qmr.fdc@sesame.cc.columbia.edu>
  10. NNTP-Posting-Host: robertls-1.us.nortel.com
  11. X-Trace: zcars0v6.ca.nortel.com 1098314386 23296 47.102.125.229 (20 Oct 2004 23:19:46 GMT)
  12. X-Complaints-To: hawkinsj@nortelnetworks.com
  13. NNTP-Posting-Date: Wed, 20 Oct 2004 23:19:46 +0000 (UTC)
  14. X-Priority: 3
  15. X-MSMail-Priority: Normal
  16. X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
  17. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
  18. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15204
  19.  
  20. I tried the fork with the stdout and stdin unbuffered.  But this had no
  21. effect.  Probably because as you wrote the echos and help text output is
  22. buffered internally in kermit.  Is there any way to flush the buffer for
  23. echo and help text?  Or set it so that these are not buffered?
  24.  
  25. Thanks for the advise on the script.  I'll use it.  The book I have is
  26. outdated.  I'll use the website for more up to date info.
  27.  
  28. As for the looping send: We are sending the same file as a soak test of the
  29. connection so we don't care about the content, just that the connection
  30. stays up and the transfers complete.
  31.  
  32. Thanks,
  33. Robert
  34.  
  35.  
  36. "Frank da Cruz" <fdc@columbia.edu> wrote in message
  37. news:slrncnddme.qmr.fdc@sesame.cc.columbia.edu...
  38. > On 2004-10-20, Robert Simmons <robertls@nortelnetworks.com> wrote:
  39. > : I am not piping the output of two processes to one file.  I tried the
  40. piping
  41. > : of the output of only the kermit script to help debug the weird
  42. behaviour I
  43. > : was seeing in the output during the fork of the script from the C++
  44. process.
  45. > :
  46. > : As you can see below the line "Hello and welcome to
  47. csd_send_script.ksc!"
  48. > : should be output well before "NO CARRIER" since it takes about 15
  49. seconds
  50. > : for NO CARRIER to be determined.
  51. > :
  52. > It's what I said: ECHO is buffered, whereas SET DIAL DISPLAY ON output is
  53. > not.  By the way, Kermit has had FOR (and WHILE) loops for many years, so
  54. > you don't need the old SET COUNT / IF COUNT trick any more:
  55. >
  56. > : set count \%5
  57. > ::loop
  58. > :    echo Sending File. Transfer Count: \v(count)\10
  59. > :    send \%6
  60. > :    if success echo Send File #\v(count) complete\10
  61. > :    if fail echo Failed Sending File #\v(count)
  62. > : if count goto loop
  63. >
  64. > Why are you sending the same file repeatedly?  Something like this
  65. > looks more sensible:
  66. >
  67. >   set flag off
  68. >   for \%i 1 \%5 1 {
  69. >       send \%6
  70. >       if success break
  71. >       echo "\%6: Failed - Try #\%i..."
  72. >    }
  73. >    if != \v(xferstatus) { ... }  # 0 means success
  74. >
  75. > - Frank
  76.  
  77.